let params = {a: 1, b: 2}

let str = Object.entries(params).map(([key, value]) => `${key}=${value}`).join("&")


console.log(str)
